﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Disco.Ontology;
using Xunit;

namespace Disco.Ontology.Tests
{
    public class IntegrationTest
    {
        [Fact]
        public void CreateNewUser() 
        {
            using (var context = new OntologyContext())
            {
                long newId = context.Users.Max(x => x.Id) + 1;
                User newUser = new User { 
                    Alias = String.Format("Another User {0}", newId) 
                };

                context.Users.Add(newUser);
                context.SaveChanges();

                long id = newUser.Id;
            }
        }
    }
}
